const user = [
    {
        url: '/api/login',
        method: 'post',
        tpl: (options) => {
            var body = JSON.parse(options.body)
            if (body.account == 'admin' && body.password == 123) {
                return {
                    code: 200,
                    message: '登录成功',
                    success: true,
                    data: {
                        token: "admin_token"
                    }
                }
            } else {
                return {
                    code: 401,
                    message: '登录失败',
                    success: false,
                    data: {

                    }
                }
            }
        }
    }
]
export default user